<?php
/**
 * Created by PhpStorm.
 * User: Digvijay
 * Date: 8/30/14
 * Time: 3:19 PM
 */

class Cartitem implements JsonSerializable {
    private $id;
    private $cartId;
    private $name;
    private $quantity;
    private $locationId;
    private $location;
    private $price;
    private $subtotal;
    private $img;
    private $discount;
    private $discountTotal;

    /**
     * @param mixed $name
     */
    public function setName($name) {
        $this->name = $name;
    }

    /**
     * @return mixed
     */
    public function getName() {
        return $this->name;
    }

    /**
     * @param mixed $quantity
     */
    public function setQuantity($quantity) {
        $this->quantity = $quantity;
    }

    /**
     * @return mixed
     */
    public function getQuantity() {
        return $this->quantity;
    }

    /**
     * @param mixed $price
     */
    public function setPrice($price) {
        $this->price = $price;
    }

    /**
     * @return mixed
     */
    public function getPrice() {
        return $this->price;
    }

    /**
     * @param mixed $locationId
     */
    public function setLocationId($locationId) {
        $this->locationId = $locationId;
    }

    /**
     * @return mixed
     */
    public function getLocationId() {
        return $this->locationId;
    }

    /**
     * @param mixed $location
     */
    public function setLocation($location) {
        $this->location = $location;
    }

    /**
     * @return mixed
     */
    public function getLocation() {
        return $this->location;
    }

    /**
     * @param mixed $img
     */
    public function setImg($img) {
        $this->img = $img;
    }

    /**
     * @return mixed
     */
    public function getImg() {
        return $this->img;
    }

    /**
     * @param mixed $id
     */
    public function setId($id) {
        $this->id = $id;
    }

    /**
     * @return mixed
     */
    public function getId() {
        return $this->id;
    }

    /**
     * @param mixed $cartId
     */
    public function setCartId($cartId) {
        $this->cartId = $cartId;
    }

    /**
     * @return mixed
     */
    public function getCartId() {
        return $this->cartId;
    }

    /**
     * @param mixed $subtotal
     */
    public function setSubtotal($subtotal) {
        $this->subtotal = $subtotal;
    }

    /**
     * @return mixed
     */
    public function getSubtotal() {
        return $this->subtotal;
    }

    /**
     * @param mixed $discount
     */
    public function setDiscount($discount) {
        $this->discount = $discount;
    }

    /**
     * @return mixed
     */
    public function getDiscount() {
        return $this->discount;
    }

    /**
     * @param mixed $discountTotal
     */
    public function setDiscountTotal($discountTotal) {
        $this->discountTotal = $discountTotal;
    }

    /**
     * @return mixed
     */
    public function getDiscountTotal() {
        return $this->discountTotal;
    }

    public function jsonSerialize() {
        return (object)get_object_vars($this);
    }
} 